function refresh(){
	try{
		 unusual();
		}catch(e){
		}
}

$(unusual);
var psid=param.psid;
var dataHand = new AjaxHandler();
var eqtype=["NBQ","XB","HLX","BW","QXY","DB","KGG"];//逆变器，相变，汇流箱，     （并网，气象仪，电表，开关柜）
var imgs=["../img/nibianqi.svg","../img/xiangbian.svg","../img/huiliuxiang.svg","../img/bingwang.svg","../img/qixiangyi.svg","../img/dianbiao.svg","../img/kaiguangu.svg"];
function unusual(){
	$.proAjax({
		url:"/mobile/unusual",
		data:{psid:psid},
		success:function(data){
			dataHand.arrayAddToHtml("unusual",data,"splitline",function(elm,datas){
				elm.find("#ctime").text(new Date(datas['ctime']).format("yyyy-MM-dd hh:mm:ss"));
				elm.find("#keeptime").text((datas['keeptime']||0).toFixed(2)+" h");
				type(elm.find("#eqtype"),datas.eqtype);
			});
		}
	});
}
function  type($elm,data){
	for(var i=0;i<eqtype.length;i++){
		if(data==eqtype[i]){
			$elm.attr("src",imgs[i]);
		}
		
	}
}